package edu.nf.supermarket.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author yjj
 * @date 2025-05-19
 * 订单类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders {
    /**
     * 订单编号
     */
    private String orderId;
    /**
     * 交易状态
     */
    private Byte status;
    /**
     * 订单状态
     */
    private Byte orderStatus;
    /**
     *支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;
    /**
     * 付款金额
     */
    private BigDecimal payMoney;
    /**
     * 订单生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 订单收货地址
     */
    private Address address;
    /**
     * 商品列表
     */
    private List<Commodity> commodityList;
}
